<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>{:$page_info['title']}</title>
<link rel="icon" href="favicon.ico" type="__STATIC__/admin/image/ico">

<meta name="author" content="yinqi">
<link href="__STATIC__/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/materialdesignicons.min.css" rel="stylesheet">
<!--标签插件-->
<link rel="stylesheet" href="__STATIC__/admin/js/jquery-tags-input/jquery.tagsinput.min.css">
<link href="__STATIC__/admin/css/style.min.css" rel="stylesheet">

<link href="__STATIC__/common/select2/select2.css" rel="stylesheet">
<link href="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="__STATIC__/common/jquery-tagsinput/jquery.tagsinput.min.css" rel="stylesheet">

<link href="__STATIC__/common/webuploader/webuploader.css" rel="stylesheet">

<link href="__STATIC__/admin/css/cch.css" rel="stylesheet">
</head>
  
<body>
<div class="container-fluid p-t-15">
  
  <div class="row">
    
    <div class="col-lg-12">
      <div class="card">
 
        <div class="card-body ">
            <form action="" method="post" class="row" >
            {include file="html/fields" /}
            <div class="form-group col-md-12">
              <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
              <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
            </form>
        </div>
      </div>
    </div>

    
    
  </div>
  
</div>

<div class="my_clone" style="display: none;">
    <div class="form-group col-md-12">
        <label class="col-sm-1 control-label col-sm-offset-2">账号</label>
        <div class="col-sm-2">
            <select name="account_type[]" class="form-control">
                <?php foreach ($fields['account_type']['params'] as $param_k => $param_v): ?>
                    <option value="{:$param_v}">{:$param_v}</option>
                <?php endforeach ?>
            </select>
        </div>
        <div class="col-sm-3">
            <input type="text" class="form-control" name="account_account[]" />
        </div>
        <div class="col-sm-2">
            <button type="button" class="btn btn-danger" onclick="deleteParams(this)">删除</button>
        </div>
    </div>
</div>

<div class="my_clone2" style="display: none;">
    <div class="form-group col-md-12">
        <label class="col-sm-1 control-label">联系人</label>
        <div class="col-sm-2">
            <input type="text" class="form-control" name="contact_name[]" />
        </div>
        <label class="col-sm-1 control-label">职位</label>
        <div class="col-sm-1">
            <input type="text" class="form-control" name="contact_position[]" />
        </div>
        <label class="col-sm-1 control-label">联系方式</label>
        <div class="col-sm-2">
            <select name="contact_type[]" class="form-control">
                <?php foreach ($fields['contact_type']['params'] as $param_k => $param_v): ?>
                    <option value="{:$param_v}">{:$param_v}</option>
                <?php endforeach ?>
            </select>
        </div>
        <label class="col-sm-1 control-label">联系号码</label>
        <div class="col-sm-2">
            <input type="text" class="form-control" name="contact_mobile[]" />
        </div>
        <div class="col-sm-1">
            <button type="button" class="btn btn-danger" onclick="deleteParams(this)">删除</button>
        </div>
    </div>
</div>

<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<!--标签插件-->
<script src="__STATIC__/admin/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/main.min.js"></script>

<!-- 时间选择器 -->
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>

<script src="__STATIC__/common/select2/select2.min.js"></script><!-- 下拉搜索 -->

<script src="__STATIC__/common/webuploader/webuploader.js"></script><!-- 上传 -->

<!-- 百度编辑器 -->
<script type="text/javascript" src="__STATIC__/common/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/common/ueditor/ueditor.all.js"></script>

<script type="text/javascript" src="__STATIC__/common/jquery-tagsinput/jquery.tagsinput.min.js"></script><!-- 标签 -->

<script type="text/javascript" src="__STATIC__/admin/js/lyear-loading.js"></script><!-- loading -->

<!--省市选择-->
<script type="text/javascript" src="__STATIC__/common/distpicker/distpicker.data.js"></script>
<script type="text/javascript" src="__STATIC__/common/distpicker/distpicker.js"></script>

<script type="text/javascript" src="__STATIC__/admin/js/cch.js"></script>

<script type="text/javascript">

    jQuery( '.js-tags-input' ).tagsInput({
        height: '80px',
        width: '100%',
        defaultText: '添加标签',
        removeWithBackspace: true,
        delimiter: [','],
        onAddTag:onAddTag,
        onRemoveTag:onRemoveTag
    });

   
</script>
</body>
</html>